<template>
	<view class="addGoodsSuccess">
		<custom-header :back="false" title="新增商品" />
		<view class="content_wrap">
			<view class="icon">
				<image src="/static/common/success.png" mode="widthFix"></image>
			</view>
			<view class="title">新增商品成功</view>
			<view class="hint">温馨提示：添加实拍视频可增加商品曝光率</view>
			<view class="btn" hover-class="custom_hover" :hover-stay-time="200" @click="handleGoUploadVideo">
				去添加
			</view>
		</view>
		<view class="btn_wrap">
			<view class="btn" hover-class="custom_hover" :hover-stay-time="200" @click="handleIndex">完成</view>
		</view>
	</view>
</template>

<script setup>
	const handleIndex = ()=>{
		uni.reLaunch({
			url:'/pages/index/index'
		})
	}
	// 上传鲜花视频
	const handleGoUploadVideo = (item)=>{
		uni.redirectTo({
			url:`/pages/uploadVideo/uploadVideo?id=${item.id}`
		})
	}
</script>

<style lang="scss">
	.addGoodsSuccess{
		height: 100vh;
		width: 100vw;
		background: #fff;
		.content_wrap{
			text-align: center;
			padding-top: 200rpx;
			.icon{
					width: 133rpx;
					height: 133rpx;
					margin: 0 auto;
			}
			.title{
				font-size: 36rpx;
				color: #333333;
				padding-top: 50rpx;
				
			}
			.hint{
				color: #999999;
				font-size: 28rpx;
				padding: 30rpx 0;
			}
			.btn{
				width: 120rpx;
				height: 48rpx;
				border-radius: 103rpx;
				border: 1rpx solid #F9502E;
				text-align: center;
				line-height: 48rpx;
				font-size: 24rpx;
				color: #F9502E;
				margin: 0 auto;
			}
		}
		.btn_wrap{
			padding-top: 300rpx;
			.btn{
				width: 348rpx;
				height: 78rpx;
				line-height: 78rpx;
				text-align: center;
				border-radius: 10rpx;
				background: #F5564D;
				font-size: 36rpx;
				color: #FFFFFF;
				margin:  0 auto;
			}
		}
	}
		
</style>
